package br.com.ia.business;

import java.util.List;

import br.com.enovar.trex.core.business.GenericBusiness;
import br.com.ia.model.ItemRegra;

public class ItemRegraBusinessImpl extends GenericBusiness implements
		ItemRegraBusiness {

	public List<ItemRegra> bucarItemRegraPorCodigoRegra(Integer codigo) {

		String[] paramNames = { "codigo", "codigoConclusao" };
		Object[] paremValues = { codigo, OperadorBusiness.CONCLUSAO };

		return getHibernateDao()
				.executeQuery(
						"br.com.ia.business.ItemRegraBusiness.bucarItemRegraPorCodigoRegra",
						paramNames, paremValues);
	}

	public List<ItemRegra> bucarConclusaoPorCodigoRegra(Integer codigo) {
		String[] paramNames = { "codigo", "codigoConclusao" };
		Object[] paremValues = { codigo, OperadorBusiness.CONCLUSAO };

		return getHibernateDao()
				.executeQuery(
						"br.com.ia.business.ItemRegraBusiness.bucarConclusaoPorCodigoRegra",
						paramNames, paremValues);
	}

}
